package com.bestescortbedsystem.entity;

import java.util.ArrayList;
import java.util.List;

public class SesBedMessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public SesBedMessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBedmessageidIsNull() {
            addCriterion("bedmessageId is null");
            return (Criteria) this;
        }

        public Criteria andBedmessageidIsNotNull() {
            addCriterion("bedmessageId is not null");
            return (Criteria) this;
        }

        public Criteria andBedmessageidEqualTo(Long value) {
            addCriterion("bedmessageId =", value, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidNotEqualTo(Long value) {
            addCriterion("bedmessageId <>", value, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidGreaterThan(Long value) {
            addCriterion("bedmessageId >", value, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidGreaterThanOrEqualTo(Long value) {
            addCriterion("bedmessageId >=", value, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidLessThan(Long value) {
            addCriterion("bedmessageId <", value, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidLessThanOrEqualTo(Long value) {
            addCriterion("bedmessageId <=", value, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidIn(List<Long> values) {
            addCriterion("bedmessageId in", values, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidNotIn(List<Long> values) {
            addCriterion("bedmessageId not in", values, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidBetween(Long value1, Long value2) {
            addCriterion("bedmessageId between", value1, value2, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andBedmessageidNotBetween(Long value1, Long value2) {
            addCriterion("bedmessageId not between", value1, value2, "bedmessageid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Long value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Long value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Long value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Long value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Long value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Long value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Long> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Long> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Long value1, Long value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Long value1, Long value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIsNull() {
            addCriterion("userShareholderId is null");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIsNotNull() {
            addCriterion("userShareholderId is not null");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidEqualTo(Long value) {
            addCriterion("userShareholderId =", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotEqualTo(Long value) {
            addCriterion("userShareholderId <>", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidGreaterThan(Long value) {
            addCriterion("userShareholderId >", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidGreaterThanOrEqualTo(Long value) {
            addCriterion("userShareholderId >=", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidLessThan(Long value) {
            addCriterion("userShareholderId <", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidLessThanOrEqualTo(Long value) {
            addCriterion("userShareholderId <=", value, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidIn(List<Long> values) {
            addCriterion("userShareholderId in", values, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotIn(List<Long> values) {
            addCriterion("userShareholderId not in", values, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidBetween(Long value1, Long value2) {
            addCriterion("userShareholderId between", value1, value2, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUsershareholderidNotBetween(Long value1, Long value2) {
            addCriterion("userShareholderId not between", value1, value2, "usershareholderid");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1IsNull() {
            addCriterion("userDistributorsId1 is null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1IsNotNull() {
            addCriterion("userDistributorsId1 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1EqualTo(Long value) {
            addCriterion("userDistributorsId1 =", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotEqualTo(Long value) {
            addCriterion("userDistributorsId1 <>", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1GreaterThan(Long value) {
            addCriterion("userDistributorsId1 >", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1GreaterThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId1 >=", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1LessThan(Long value) {
            addCriterion("userDistributorsId1 <", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1LessThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId1 <=", value, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1In(List<Long> values) {
            addCriterion("userDistributorsId1 in", values, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotIn(List<Long> values) {
            addCriterion("userDistributorsId1 not in", values, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1Between(Long value1, Long value2) {
            addCriterion("userDistributorsId1 between", value1, value2, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid1NotBetween(Long value1, Long value2) {
            addCriterion("userDistributorsId1 not between", value1, value2, "userdistributorsid1");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2IsNull() {
            addCriterion("userDistributorsId2 is null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2IsNotNull() {
            addCriterion("userDistributorsId2 is not null");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2EqualTo(Long value) {
            addCriterion("userDistributorsId2 =", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotEqualTo(Long value) {
            addCriterion("userDistributorsId2 <>", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2GreaterThan(Long value) {
            addCriterion("userDistributorsId2 >", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2GreaterThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId2 >=", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2LessThan(Long value) {
            addCriterion("userDistributorsId2 <", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2LessThanOrEqualTo(Long value) {
            addCriterion("userDistributorsId2 <=", value, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2In(List<Long> values) {
            addCriterion("userDistributorsId2 in", values, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotIn(List<Long> values) {
            addCriterion("userDistributorsId2 not in", values, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2Between(Long value1, Long value2) {
            addCriterion("userDistributorsId2 between", value1, value2, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUserdistributorsid2NotBetween(Long value1, Long value2) {
            addCriterion("userDistributorsId2 not between", value1, value2, "userdistributorsid2");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidIsNull() {
            addCriterion("userMaintenanceId is null");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidIsNotNull() {
            addCriterion("userMaintenanceId is not null");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidEqualTo(Long value) {
            addCriterion("userMaintenanceId =", value, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidNotEqualTo(Long value) {
            addCriterion("userMaintenanceId <>", value, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidGreaterThan(Long value) {
            addCriterion("userMaintenanceId >", value, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidGreaterThanOrEqualTo(Long value) {
            addCriterion("userMaintenanceId >=", value, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidLessThan(Long value) {
            addCriterion("userMaintenanceId <", value, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidLessThanOrEqualTo(Long value) {
            addCriterion("userMaintenanceId <=", value, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidIn(List<Long> values) {
            addCriterion("userMaintenanceId in", values, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidNotIn(List<Long> values) {
            addCriterion("userMaintenanceId not in", values, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidBetween(Long value1, Long value2) {
            addCriterion("userMaintenanceId between", value1, value2, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andUsermaintenanceidNotBetween(Long value1, Long value2) {
            addCriterion("userMaintenanceId not between", value1, value2, "usermaintenanceid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidIsNull() {
            addCriterion("bed_bed_typeId is null");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidIsNotNull() {
            addCriterion("bed_bed_typeId is not null");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidEqualTo(Long value) {
            addCriterion("bed_bed_typeId =", value, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidNotEqualTo(Long value) {
            addCriterion("bed_bed_typeId <>", value, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidGreaterThan(Long value) {
            addCriterion("bed_bed_typeId >", value, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidGreaterThanOrEqualTo(Long value) {
            addCriterion("bed_bed_typeId >=", value, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidLessThan(Long value) {
            addCriterion("bed_bed_typeId <", value, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidLessThanOrEqualTo(Long value) {
            addCriterion("bed_bed_typeId <=", value, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidIn(List<Long> values) {
            addCriterion("bed_bed_typeId in", values, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidNotIn(List<Long> values) {
            addCriterion("bed_bed_typeId not in", values, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidBetween(Long value1, Long value2) {
            addCriterion("bed_bed_typeId between", value1, value2, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andBedBedTypeidNotBetween(Long value1, Long value2) {
            addCriterion("bed_bed_typeId not between", value1, value2, "bedBedTypeid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidIsNull() {
            addCriterion("hospitalinfoId is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidIsNotNull() {
            addCriterion("hospitalinfoId is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidEqualTo(Long value) {
            addCriterion("hospitalinfoId =", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidNotEqualTo(Long value) {
            addCriterion("hospitalinfoId <>", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidGreaterThan(Long value) {
            addCriterion("hospitalinfoId >", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidGreaterThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoId >=", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidLessThan(Long value) {
            addCriterion("hospitalinfoId <", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidLessThanOrEqualTo(Long value) {
            addCriterion("hospitalinfoId <=", value, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidIn(List<Long> values) {
            addCriterion("hospitalinfoId in", values, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidNotIn(List<Long> values) {
            addCriterion("hospitalinfoId not in", values, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoId between", value1, value2, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoidNotBetween(Long value1, Long value2) {
            addCriterion("hospitalinfoId not between", value1, value2, "hospitalinfoid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidIsNull() {
            addCriterion("hospitalinfo_departmentId is null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidIsNotNull() {
            addCriterion("hospitalinfo_departmentId is not null");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidEqualTo(Long value) {
            addCriterion("hospitalinfo_departmentId =", value, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidNotEqualTo(Long value) {
            addCriterion("hospitalinfo_departmentId <>", value, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidGreaterThan(Long value) {
            addCriterion("hospitalinfo_departmentId >", value, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidGreaterThanOrEqualTo(Long value) {
            addCriterion("hospitalinfo_departmentId >=", value, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidLessThan(Long value) {
            addCriterion("hospitalinfo_departmentId <", value, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidLessThanOrEqualTo(Long value) {
            addCriterion("hospitalinfo_departmentId <=", value, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidIn(List<Long> values) {
            addCriterion("hospitalinfo_departmentId in", values, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidNotIn(List<Long> values) {
            addCriterion("hospitalinfo_departmentId not in", values, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidBetween(Long value1, Long value2) {
            addCriterion("hospitalinfo_departmentId between", value1, value2, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andHospitalinfoDepartmentidNotBetween(Long value1, Long value2) {
            addCriterion("hospitalinfo_departmentId not between", value1, value2, "hospitalinfoDepartmentid");
            return (Criteria) this;
        }

        public Criteria andRevenueidIsNull() {
            addCriterion("RevenueId is null");
            return (Criteria) this;
        }

        public Criteria andRevenueidIsNotNull() {
            addCriterion("RevenueId is not null");
            return (Criteria) this;
        }

        public Criteria andRevenueidEqualTo(Long value) {
            addCriterion("RevenueId =", value, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidNotEqualTo(Long value) {
            addCriterion("RevenueId <>", value, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidGreaterThan(Long value) {
            addCriterion("RevenueId >", value, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidGreaterThanOrEqualTo(Long value) {
            addCriterion("RevenueId >=", value, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidLessThan(Long value) {
            addCriterion("RevenueId <", value, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidLessThanOrEqualTo(Long value) {
            addCriterion("RevenueId <=", value, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidIn(List<Long> values) {
            addCriterion("RevenueId in", values, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidNotIn(List<Long> values) {
            addCriterion("RevenueId not in", values, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidBetween(Long value1, Long value2) {
            addCriterion("RevenueId between", value1, value2, "revenueid");
            return (Criteria) this;
        }

        public Criteria andRevenueidNotBetween(Long value1, Long value2) {
            addCriterion("RevenueId not between", value1, value2, "revenueid");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}